package chapter02;

public class Example04 {
    public static void main(String[] args) {
        int x =12;//定义变量x
        {
            int y =96;//定义变量y
            System.out.println("x is" + x);//访问变量x
            System.out.println("y is" + y);//访问变量y
        }
        //y = x;//访问变量x 为变量y赋值
        System.out.println("x is" + x);//访问变量x
    }
}
